# Contributor: Mike Crute <mike@crute.us>
# Maintainer: Mike Crute <mike@crute.us>
pkgname=znc-backlog
pkgver=0_git20210503
pkgrel=7
pkgdesc="Request backlog for IRC channels"
url="https://wiki.znc.in/Backlog"
arch="all"
license="Apache-2.0"
makedepends="znc-dev icu-dev openssl-dev>3 zlib-dev"
# Upstream does not version, instead use the most recent hash of their master branch
_latest_upstream_hash="44314a6aca0409ae59b0d841807261be1159fff4"
source="$pkgname-$pkgver.tar.gz::https://github.com/FruitieX/znc-backlog/archive/$_latest_upstream_hash.tar.gz"
options="!check" # Upstream has no tests
builddir="$srcdir/$pkgname-$_latest_upstream_hash"

build() {
	make
}

package() {
	install -D -m644 "$builddir"/backlog.so "$pkgdir"/usr/lib/znc/backlog.so
}

sha512sums="
7dc77c5aa0243b147b5cf8ffd15566a2859927c856ec364c25809c5a2394733c703f6bc292ef55f9e9be74d4bab9921feeb208a669c153e43d405226796cc41c  znc-backlog-0_git20210503.tar.gz
"
